package com.phpxiu.app.model.event;

/**
 * 微信登录、分享事件
 * Created by WuJinZhou on 2016/5/3.
 */
public class WeiXinEvent {
    public final static int LOGIN_ERR=-0x1;
    public final static int LOGIN_SUCCESS=0x2;
    public final static int SHARE=0x3;
    private int code=LOGIN_SUCCESS;
    private String unionId;
    private String token;
    private String secret;
    private String nick;
    public WeiXinEvent(int code) {
        this.code = code;
    }

    public WeiXinEvent(int code,String unionId, String token, String secret,String nick) {
        this.code = code;
        this.unionId=unionId;
        this.token = token;
        this.secret = secret;
        this.nick=nick;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getUnionId() {
        return unionId;
    }

    public void setUnionId(String unionId) {
        this.unionId = unionId;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public String getSecret() {
        return secret;
    }

    public void setSecret(String secret) {
        this.secret = secret;
    }

    public String getNick() {
        return nick;
    }

    public void setNick(String nick) {
        this.nick = nick;
    }
}
